<?php
if ( !defined( "IN_OP" ) )
{
    exit( "You can't access this file directly..." );
}
define( "IN_CHK_CEN", 1 );
require_once( "class_3d/CheckMode_3d.php" );
$gametype = intval( getvar( "gametype" ) );
$chk = new CheckMode_3d( $curruser['acl'], 1, $gametype );
$chk->checkShow3dPage();
unset( $chk );
$tbl = $g_gametype_3d[$gametype]['en'];
$tblName = $g_gametype_3d[$gametype]['ch'];
$user = new User();
$curruser = $user->getuser();
$conf = new Config();
$DATAEXPIRYDAY3 = $conf->Get( "news_th_{$tbl}" );
if ( 0 < substr_count( $DATAEXPIRYDAY3, ";" ) )
{
    $moredoc = explode( ";", $DATAEXPIRYDAY3 );
    $DATAEXPIRYDAY3 = "";
    $i = 0;
    while ( $i < count( $moredoc ) )
    {
        $DATAEXPIRYDAY3 .= $moredoc[$i]."<br>";
        ++$i;
    }
}
$ui = new UI_3D();
$ccc = "系统管理员 - 连控操盘人员";
if ( 0 < $curruser['prev_id'] )
{
    $ccc = "公司管理员";
}
$ui->header();
$ui->showNews3D( $curruser['acl'] );
echo "<div style='font-size:12pt; word-wrap: break-word; word-break: normal;'><b>".L_DEAR." {$ccc}：".$curruser['name']."，你目前登入的主站为:".G_SITENAME_LOGIN."。</b><br><br>".L_THISLOGINDATE.date( "Y-m-d H:i:s" )."，您的 IP 为：".getIP( )."<br><br>";
echo "<b>".L_OPERATION."</b><br><br>".L_OPERATIONMOTION."<br><br>";
echo "<b>注意事项：</b><br><br>".L_DATAEXPIRYDAY1."<br>".L_DATAEXPIRYDAY2."<br>".L_DATAEXPIRYDAY3."<br><br>";
echo "<b>系统公告：</b><pre class='td2'>{$DATAEXPIRYDAY3}</pre><br></div>";
$newmsg = trim( $conf->Get( "news_th" ) );
$newmsg = str_replace( "\r\n", "", $newmsg );
if ( $newmsg != "" )
{
    echo "<script>alert('{$newmsg}')</script>";
}
$ui->footer();
?>